package org.ecshop.models;

import java.math.BigDecimal;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;


/**
 * AccountLog entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name="ecs_account_log"
    
)

public class AccountLog  implements java.io.Serializable {


    // Fields    

     private Integer logId;
     private Integer userId;
     private BigDecimal userMoney;
     private BigDecimal frozenMoney;
     private Integer rankPoints;
     private Integer payPoints;
     private Integer changeTime;
     private String changeDesc;
     private Byte changeType;


    // Constructors

    /** default constructor */
    public AccountLog() {
    }

    
    /** full constructor */
    public AccountLog(Integer userId, BigDecimal userMoney, BigDecimal frozenMoney, Integer rankPoints, Integer payPoints, Integer changeTime, String changeDesc, Byte changeType) {
        this.userId = userId;
        this.userMoney = userMoney;
        this.frozenMoney = frozenMoney;
        this.rankPoints = rankPoints;
        this.payPoints = payPoints;
        this.changeTime = changeTime;
        this.changeDesc = changeDesc;
        this.changeType = changeType;
    }

   
    // Property accessors
    @Id @GeneratedValue(strategy=IDENTITY)
    
    @Column(name="log_id", unique=true, nullable=false)

    public Integer getLogId() {
        return this.logId;
    }
    
    public void setLogId(Integer logId) {
        this.logId = logId;
    }
    
    @Column(name="user_id", nullable=false)

    public Integer getUserId() {
        return this.userId;
    }
    
    public void setUserId(Integer userId) {
        this.userId = userId;
    }
    
    @Column(name="user_money", nullable=false, precision=10)

    public BigDecimal getUserMoney() {
        return this.userMoney;
    }
    
    public void setUserMoney(BigDecimal userMoney) {
        this.userMoney = userMoney;
    }
    
    @Column(name="frozen_money", nullable=false, precision=10)

    public BigDecimal getFrozenMoney() {
        return this.frozenMoney;
    }
    
    public void setFrozenMoney(BigDecimal frozenMoney) {
        this.frozenMoney = frozenMoney;
    }
    
    @Column(name="rank_points", nullable=false)

    public Integer getRankPoints() {
        return this.rankPoints;
    }
    
    public void setRankPoints(Integer rankPoints) {
        this.rankPoints = rankPoints;
    }
    
    @Column(name="pay_points", nullable=false)

    public Integer getPayPoints() {
        return this.payPoints;
    }
    
    public void setPayPoints(Integer payPoints) {
        this.payPoints = payPoints;
    }
    
    @Column(name="change_time", nullable=false)

    public Integer getChangeTime() {
        return this.changeTime;
    }
    
    public void setChangeTime(Integer changeTime) {
        this.changeTime = changeTime;
    }
    
    @Column(name="change_desc", nullable=false)

    public String getChangeDesc() {
        return this.changeDesc;
    }
    
    public void setChangeDesc(String changeDesc) {
        this.changeDesc = changeDesc;
    }
    
    @Column(name="change_type", nullable=false)

    public Byte getChangeType() {
        return this.changeType;
    }
    
    public void setChangeType(Byte changeType) {
        this.changeType = changeType;
    }
   








}